import request from '@/utils/request'

// 查询子IP列表
export function listSlave(query) {
  return request({
    url: '/system/slave/list',
    method: 'get',
    params: query
  })
}

// 查询子IP详细
export function getSlave(id) {
  return request({
    url: '/system/slave/' + id,
    method: 'get'
  })
}

// 新增子IP
export function addSlave(data) {
  return request({
    url: '/system/slave',
    method: 'post',
    data: data
  })
}

// 修改子IP
export function updateSlave(data) {
  return request({
    url: '/system/slave',
    method: 'put',
    data: data
  })
}

// 删除子IP
export function delSlave(id) {
  return request({
    url: '/system/slave/' + id,
    method: 'delete'
  })
}
